import { CategoryType } from "@/types/course";
import request from "@/utils/request";

export const categoryGet = () => {
  return request.get("classes/ReactCategory");
};

export const categoryPost = (cateObj: CategoryType) => {
  return request.post("classes/ReactCategory", cateObj);
};

export const categoryPut = (id: string, cateObj: CategoryType) => {
  return request.put(`classes/ReactCategory/${id}`, cateObj);
};
